import { createApp } from 'vue'
import '@/styles/index.scss'
import App from './App.vue'
import router from './router'
import { store, key } from './store'
import elementPlus from './plugins/element-plus'

const modules = import.meta.glob('./components/**/index.ts', { eager: true })


const app = createApp(App)

app.use(store, key)
app.use(elementPlus)

Object.keys(modules).forEach((key) => {
    app.use(modules[key].default)
})

app.use(router).mount('#app')
